#include "Plotter.h"
#include "Color.h"
#include "StdAfx.h"
#include "ImageBitmap.h"
#include "PolygonData.h"
#include "Coordinates.h"


namespace HW2
{
	ScreenPlotter::ScreenPlotter(CDC* screen) : screen(screen) {}
	// Ignore z
	void ScreenPlotter::plot(int x, int y, double z, Color c, Coordinates orig)
	{
		screen->SetPixel(x,y,RGB(c.r,c.g,c.b));
	}

	void ScreenPlotter::fillBackground(Color c)
	{
		CRect rect;   
		screen->GetWindow()->GetClientRect(&rect);
		CBrush bgColor(RGB(c.r,c.g,c.b));   
		screen->FillRect(&rect,&bgColor);
	}

}